<!-- 此tpl如使用script标签渲染，请遵循layui.laytpl语法，此页面，支持PHP语法-->


<script type="text/html" id="orderDemo">
    <div class="layui-btn-container">
        {foreach name="right_buttons" key="key" item="vo"}

            {if $vo.title == '发货'}
                {{#  if(d.statusRaw > 1){ }}
                    {{#  if(d.statusRaw == 2){ }}
                    <a class="layui-btn layui-btn-sm right_button" lay-event="{$vo.json}">发货</a>
                    {{#  } else { }}
                    <a class="layui-btn layui-btn-sm right_button" lay-event="{$vo.json}">发货详情</a>
                    {{#  } }}
                {{#  } }}
            {elseif $vo.title == '删除'}
                {{#  if(d.statusRaw  == 1){ }}
                <a class="layui-btn layui-btn-sm right_button layui-btn-danger" lay-event="{$vo.json}">删除</a>
                {{#  } }}
            {else}
                <a class="{$vo.class} right_button" lay-event="{$vo.json}">{$vo.title}</a>
            {/if}

        {/foreach}
    </div>
</script>

<script id="addressTpl" type="text/html">
    <div>{{d.p.title}}{{d.c.title}}{{d.d.title}}{{d.address_details}}</div>
</script>